home *** CD-ROM | disk | FTP | other *** search
Unknown | 1991-04-30 | 10.7 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
| |
100%
| dexmagic
| Director STXT
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 0c 00 00 29 ec | 00 00 01 06 2d 2d 20 74 |......).|....-- t|
|00000010| 68 69 73 20 69 73 20 61 | 20 6e 65 63 65 73 73 61 |his is a| necessa|
|00000020| 72 79 20 63 6f 6d 6d 65 | 6e 74 0d 6d 61 63 72 6f |ry comme|nt.macro|
|00000030| 20 69 6e 69 74 20 20 20 | 20 20 20 20 20 20 20 20 | init | |
|00000040| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000060| 20 20 20 20 2d 2d 43 61 | 6c 6c 20 74 68 69 73 20 | --Ca|ll this |
|00000070| 6d 61 63 72 6f 20 66 72 | 6f 6d 20 46 72 61 6d 65 |macro fr|om Frame|
|00000080| 20 31 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | 1. | |
|00000090| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000d0| 20 20 20 20 2d 2d 54 68 | 65 20 66 69 72 73 74 20 | --Th|e first |
|000000e0| 73 74 65 70 20 69 73 20 | 74 6f 20 74 65 73 74 20 |step is |to test |
|000000f0| 77 68 65 74 68 65 72 20 | 61 20 74 65 78 74 20 66 |whether |a text f|
|00000100| 69 6c 65 20 6e 61 6d 65 | 64 20 0d 20 20 20 20 20 |ile name|d . |
|00000110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000140| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000150| 20 20 20 20 20 20 20 20 | 20 20 20 20 2d 2d 22 46 | | --"F|
|00000160| 72 61 6d 65 46 69 6c 65 | 22 20 65 78 69 73 74 73 |rameFile|" exists|
|00000170| 20 69 6e 20 74 68 65 20 | 73 61 6d 65 20 66 6f 6c | in the |same fol|
|00000180| 64 65 72 20 61 73 20 74 | 68 65 20 6d 6f 76 69 65 |der as t|he movie|
|00000190| 2e 0d 73 65 74 20 74 65 | 78 74 46 69 6c 65 20 3d |..set te|xtFile =|
|000001a0| 20 46 69 6c 65 49 4f 28 | 20 6d 4e 65 77 2c 20 22 | FileIO(| mNew, "|
|000001b0| 72 65 61 64 22 2c 20 28 | 74 68 65 20 70 61 74 68 |read", (|the path|
|000001c0| 4e 61 6d 65 20 26 20 22 | 46 72 61 6d 65 46 69 6c |Name & "|FrameFil|
|000001d0| 65 22 29 20 29 0d 69 66 | 20 74 65 78 74 46 69 6c |e") ).if| textFil|
|000001e0| 65 20 3d 20 20 2d 34 33 | 20 74 68 65 6e 20 20 20 |e = -43| then |
|000001f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000200| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000210| 20 20 2d 2d 69 66 20 74 | 68 65 20 66 69 6c 65 20 | --if t|he file |
|00000220| 64 6f 65 73 20 6e 6f 74 | 20 65 78 69 73 74 2c 20 |does not| exist, |
|00000230| 77 65 20 63 72 65 61 74 | 65 20 69 74 2c 20 61 6e |we creat|e it, an|
|00000240| 64 20 70 75 74 20 61 20 | 7a 65 72 6f 20 69 6e 20 |d put a |zero in |
|00000250| 69 74 2e 0d 20 20 20 20 | 73 65 74 20 74 65 78 74 |it.. |set text|
|00000260| 46 69 6c 65 20 3d 20 46 | 69 6c 65 49 4f 28 20 6d |File = F|ileIO( m|
|00000270| 4e 65 77 2c 20 22 77 72 | 69 74 65 22 2c 20 28 74 |New, "wr|ite", (t|
|00000280| 68 65 20 70 61 74 68 4e | 61 6d 65 20 26 20 22 46 |he pathN|ame & "F|
|00000290| 72 61 6d 65 46 69 6c 65 | 22 29 20 29 0d 20 20 20 |rameFile|") ). |
|000002a0| 20 74 65 78 74 46 69 6c | 65 28 20 6d 57 72 69 74 | textFil|e( mWrit|
|000002b0| 65 53 74 72 69 6e 67 2c | 20 73 74 72 69 6e 67 28 |eString,| string(|
|000002c0| 20 30 20 29 20 26 20 72 | 65 74 75 72 6e 20 29 20 | 0 ) & r|eturn ) |
|000002d0| 20 20 20 20 20 20 20 2d | 2d 54 68 65 20 63 68 6f | -|-The cho|
|000002e0| 69 63 65 20 6f 66 20 6d | 57 72 69 74 65 53 74 72 |ice of m|WriteStr|
|000002f0| 69 6e 67 20 26 20 6d 52 | 65 61 64 53 74 72 69 6e |ing & mR|eadStrin|
|00000300| 67 20 69 73 20 62 65 74 | 74 65 72 20 74 68 61 6e |g is bet|ter than|
|00000310| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000340| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000360| 20 20 2d 2d 74 68 65 20 | 6d 65 74 68 6f 64 73 20 | --the |methods |
|00000370| 6d 57 72 69 74 65 43 68 | 61 72 20 26 20 6d 52 65 |mWriteCh|ar & mRe|
|00000380| 61 64 43 68 61 72 20 73 | 69 6e 63 65 20 61 20 66 |adChar s|ince a f|
|00000390| 72 61 6d 65 20 6e 75 6d | 62 65 72 0d 20 20 20 20 |rame num|ber. |
|000003a0| 74 65 78 74 46 69 6c 65 | 28 20 6d 44 69 73 70 6f |textFile|( mDispo|
|000003b0| 73 65 20 29 20 20 20 20 | 20 20 20 20 20 20 20 20 |se ) | |
|000003c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003e0| 20 20 20 2d 2d 63 61 6e | 20 68 61 76 65 20 6d 6f | --can| have mo|
|000003f0| 72 65 20 74 68 61 6e 20 | 6f 6e 65 20 64 69 67 69 |re than |one digi|
|00000400| 74 2e 0d 20 20 20 20 65 | 78 69 74 0d 65 6e 64 20 |t.. e|xit.end |
|00000410| 69 66 0d 73 65 74 20 73 | 20 3d 20 74 65 78 74 46 |if.set s| = textF|
|00000420| 69 6c 65 28 20 6d 52 65 | 61 64 4c 69 6e 65 20 29 |ile( mRe|adLine )|
|00000430| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000450| 20 20 20 20 20 2d 2d 49 | 66 20 74 68 65 20 66 69 | --I|f the fi|
|00000460| 6c 65 20 64 6f 65 73 20 | 65 78 69 73 74 2c 20 77 |le does |exist, w|
|00000470| 65 20 63 6f 6e 74 69 6e | 75 65 20 68 65 72 65 20 |e contin|ue here |
|00000480| 61 6e 64 20 72 65 61 64 | 20 74 68 65 20 66 72 61 |and read| the fra|
|00000490| 6d 65 20 6e 75 6d 62 65 | 72 20 0d 73 65 74 20 6e |me numbe|r .set n|
|000004a0| 20 3d 20 76 61 6c 75 65 | 28 20 73 20 29 20 20 20 | = value|( s ) |
|000004b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004e0| 20 20 20 2d 2d 77 68 69 | 63 68 20 69 73 20 73 74 | --whi|ch is st|
|000004f0| 6f 72 65 64 20 61 73 20 | 61 20 74 65 78 74 20 73 |ored as |a text s|
|00000500| 74 72 69 6e 67 20 61 6e | 64 20 63 6f 6e 76 65 72 |tring an|d conver|
|00000510| 74 20 74 68 65 20 73 74 | 72 69 6e 67 20 74 6f 20 |t the st|ring to |
|00000520| 61 20 6e 75 6d 62 65 72 | 2e 0d 20 20 20 20 20 20 |a number|.. |
|00000530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000570| 20 20 20 20 20 20 20 20 | 20 20 2d 2d 49 66 20 74 | | --If t|
|00000580| 68 65 20 6e 75 6d 62 65 | 72 20 69 73 20 30 2c 20 |he numbe|r is 0, |
|00000590| 77 65 20 61 73 73 75 6d | 65 20 74 68 69 73 20 69 |we assum|e this i|
|000005a0| 73 20 74 68 65 20 66 69 | 72 73 74 20 74 69 6d 65 |s the fi|rst time|
|000005b0| 20 74 68 65 20 6d 6f 76 | 69 65 20 68 61 73 0d 20 | the mov|ie has. |
|000005c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000600| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2d | | -|
|00000610| 2d 62 65 65 6e 20 70 6c | 61 79 65 64 2c 20 73 6f |-been pl|ayed, so|
|00000620| 20 77 65 20 65 78 69 74 | 20 74 68 65 20 6d 61 63 | we exit| the mac|
|00000630| 72 6f 20 26 20 63 6f 6e | 74 69 6e 75 65 20 70 6c |ro & con|tinue pl|
|00000640| 61 79 69 6e 67 20 74 68 | 65 20 6d 6f 76 69 65 0d |aying th|e movie.|
|00000650| 74 65 78 74 46 69 6c 65 | 28 20 6d 44 69 73 70 6f |textFile|( mDispo|
|00000660| 73 65 20 29 20 20 20 20 | 20 20 20 20 20 20 20 20 |se ) | |
|00000670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000690| 20 20 20 20 20 20 2d 2d | 61 66 74 65 72 20 64 69 | --|after di|
|000006a0| 73 70 6f 73 69 6e 67 20 | 74 68 65 20 72 65 61 64 |sposing |the read|
|000006b0| 2d 66 69 6c 65 20 6f 62 | 6a 65 63 74 2e 20 54 68 |-file ob|ject. Th|
|000006c0| 69 73 20 63 6c 6f 73 65 | 73 20 74 68 65 20 66 69 |is close|s the fi|
|000006d0| 6c 65 2c 20 61 6e 64 20 | 70 75 72 67 65 73 20 20 |le, and |purges |
|000006e0| 20 20 20 0d 69 66 20 6e | 20 3d 20 30 20 74 68 65 | .if n| = 0 the|
|000006f0| 6e 20 65 78 69 74 20 20 | 20 20 20 20 20 20 20 20 |n exit | |
|00000700| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000720| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2d 2d 74 | | --t|
|00000730| 68 65 20 6f 62 6a 65 63 | 74 20 76 61 72 69 61 62 |he objec|t variab|
|00000740| 6c 65 20 66 72 6f 6d 20 | 52 41 4d 20 69 6e 20 63 |le from |RAM in c|
|00000750| 61 73 65 20 74 68 65 20 | 6d 6f 76 69 65 20 61 62 |ase the |movie ab|
|00000760| 6f 72 74 73 20 73 75 64 | 64 65 6e 6c 79 2e 0d 20 |orts sud|denly.. |
|00000770| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000007a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000007b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2d | | -|
|000007c0| 2d 6f 74 68 65 72 77 69 | 73 65 2e 2e 2e 20 20 20 |-otherwi|se... |
|000007d0| 20 20 20 20 20 20 20 0d | 73 65 74 20 74 65 78 74 | .|set text|
|000007e0| 46 69 6c 65 20 3d 20 46 | 69 6c 65 49 4f 28 20 6d |File = F|ileIO( m|
|000007f0| 4e 65 77 2c 20 22 77 72 | 69 74 65 22 2c 20 28 74 |New, "wr|ite", (t|
|00000800| 68 65 20 70 61 74 68 4e | 61 6d 65 20 26 20 22 46 |he pathN|ame & "F|
|00000810| 72 61 6d 65 46 69 6c 65 | 22 29 20 29 20 2d 2d 77 |rameFile|") ) --w|
|00000820| 65 20 73 65 74 20 74 68 | 65 20 69 6e 73 74 61 6e |e set th|e instan|
|00000830| 63 65 20 76 61 72 69 61 | 62 6c 65 20 75 70 20 74 |ce varia|ble up t|
|00000840| 6f 20 77 72 69 74 65 20 | 74 6f 20 74 68 65 20 66 |o write |to the f|
|00000850| 69 6c 65 2c 0d 74 65 78 | 74 46 69 6c 65 28 20 6d |ile,.tex|tFile( m|
|00000860| 53 65 74 50 6f 73 69 74 | 69 6f 6e 2c 30 20 29 20 |SetPosit|ion,0 ) |
|00000870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000890| 20 20 20 20 20 20 20 20 | 2d 2d 72 65 73 65 74 20 | |--reset |
|000008a0| 74 68 65 20 66 69 6c 65 | 20 70 6f 69 6e 74 65 72 |the file| pointer|
|000008b0| 20 74 6f 20 74 68 65 20 | 62 65 67 69 6e 6e 69 6e | to the |beginnin|
|000008c0| 67 20 6f 66 20 74 68 65 | 20 66 69 6c 65 2c 0d 74 |g of the| file,.t|
|000008d0| 65 78 74 46 69 6c 65 28 | 20 6d 57 72 69 74 65 53 |extFile(| mWriteS|
|000008e0| 74 72 69 6e 67 2c 20 73 | 74 72 69 6e 67 28 20 30 |tring, s|tring( 0|
|000008f0| 20 29 20 26 20 72 65 74 | 75 72 6e 20 29 20 20 20 | ) & ret|urn ) |
|00000900| 20 20 20 20 20 20 20 20 | 2d 2d 61 6e 64 20 77 72 | |--and wr|
|00000910| 69 74 65 20 61 20 73 74 | 72 69 6e 67 20 63 6f 6e |ite a st|ring con|
|00000920| 74 61 69 6e 69 6e 67 20 | 61 20 7a 65 72 6f 20 69 |taining |a zero i|
|00000930| 6e 74 6f 20 74 68 65 20 | 74 65 78 74 46 69 6c 65 |nto the |textFile|
|00000940| 20 69 6e 20 6f 72 64 65 | 72 20 74 6f 0d 20 20 20 | in orde|r to. |
|00000950| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000960| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000990| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2d 2d 72 | | --r|
|000009a0| 65 2d 69 6e 69 74 69 61 | 6c 69 7a 65 20 69 74 20 |e-initia|lize it |
|000009b0| 66 6f 72 20 74 68 65 20 | 6e 65 78 74 20 74 69 6d |for the |next tim|
|000009c0| 65 20 74 68 65 20 6d 6f | 76 69 65 20 70 6c 61 79 |e the mo|vie play|
|000009d0| 73 2e 0d 74 65 78 74 46 | 69 6c 65 28 20 6d 44 69 |s..textF|ile( mDi|
|000009e0| 73 70 6f 73 65 20 29 20 | 20 20 20 20 20 20 20 20 |spose ) | |
|000009f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a10| 20 20 20 20 20 20 20 20 | 20 2d 2d 57 65 20 64 69 | | --We di|
|00000a20| 73 70 6f 73 65 20 6f 66 | 20 74 68 65 20 77 72 69 |spose of| the wri|
|00000a30| 74 65 2d 66 69 6c 65 20 | 6f 62 6a 65 63 74 2e 20 |te-file |object. |
|00000a40| 54 68 69 73 20 63 6c 6f | 73 65 73 20 74 68 65 20 |This clo|ses the |
|00000a50| 66 69 6c 65 2c 20 61 6e | 64 20 70 75 72 67 65 73 |file, an|d purges|
|00000a60| 20 20 20 20 20 0d 20 20 | 20 20 20 20 20 20 20 20 | . | |
|00000a70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000aa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ab0| 20 20 20 20 20 20 2d 2d | 74 68 65 20 6f 62 6a 65 | --|the obje|
|00000ac0| 63 74 20 76 61 72 69 61 | 62 6c 65 20 66 72 6f 6d |ct varia|ble from|
|00000ad0| 20 52 41 4d 20 69 6e 20 | 63 61 73 65 20 74 68 65 | RAM in |case the|
|00000ae0| 20 6d 6f 76 69 65 20 61 | 62 6f 72 74 73 20 73 75 | movie a|borts su|
|00000af0| 64 64 65 6e 6c 79 2e 0d | 67 6f 20 74 6f 20 66 72 |ddenly..|go to fr|
|00000b00| 61 6d 65 20 28 20 6e 20 | 29 20 20 20 20 20 20 20 |ame ( n |) |
|00000b10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b40| 2d 2d 54 68 65 6e 20 77 | 65 20 6a 75 6d 70 20 74 |--Then w|e jump t|
|00000b50| 6f 20 74 68 65 20 73 70 | 65 63 69 66 69 65 64 20 |o the sp|ecified |
|00000b60| 66 72 61 6d 65 20 6f 66 | 20 74 68 65 20 6d 6f 76 |frame of| the mov|
|00000b70| 69 65 2e 20 4e 4f 54 45 | 3a 0d 20 20 20 20 20 20 |ie. NOTE|:. |
|00000b80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ba0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000bc0| 20 20 20 20 20 20 20 20 | 20 20 2d 2d 74 68 69 73 | | --this|
|00000bd0| 20 72 65 74 75 72 6e 20 | 77 6f 75 6c 64 20 62 65 | return |would be|
|00000be0| 20 74 6f 20 74 68 65 20 | 73 61 6d 65 20 66 72 61 | to the |same fra|
|00000bf0| 6d 65 20 66 72 6f 6d 20 | 77 68 65 72 65 20 79 6f |me from |where yo|
|00000c00| 75 20 63 61 6c 6c 65 64 | 20 69 74 2e 20 20 20 20 |u called| it. |
|00000c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c60| 20 20 20 20 0d 20 20 20 | 20 20 20 20 20 20 20 20 | . | |
|00000c70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000cb0| 20 20 20 20 20 2d 2d 49 | 66 20 79 6f 75 20 77 61 | --I|f you wa|
|00000cc0| 6e 74 20 74 6f 20 72 65 | 74 75 72 6e 20 74 6f 20 |nt to re|turn to |
|00000cd0| 74 68 65 20 6e 65 78 74 | 20 66 72 61 6d 65 2c 0d |the next| frame,.|
|00000ce0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d30| 2d 2d 75 73 65 20 74 68 | 65 20 73 79 6e 74 61 78 |--use th|e syntax|
|00000d40| 3a 20 d2 67 6f 20 74 6f | 20 66 72 61 6d 65 20 28 |: .go to| frame (|
|00000d50| 20 6e 2b 31 20 29 d3 20 | 69 6e 73 74 65 61 64 2e | n+1 ). |instead.|
|00000d60| 0d 0d 0d 6d 61 63 72 6f | 20 74 72 61 6e 73 66 65 |...macro| transfe|
|00000d70| 72 4d 61 74 68 65 6d 61 | 74 69 63 61 20 20 20 20 |rMathema|tica |
|00000d80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d90| 20 20 20 20 20 20 20 20 | 20 2d 2d 20 43 61 6c 6c | | -- Call|
|00000da0| 20 74 68 69 73 20 6d 61 | 63 72 6f 20 66 72 6f 6d | this ma|cro from|
|00000db0| 20 66 72 61 6d 65 73 20 | 77 68 65 72 65 20 79 6f | frames |where yo|
|00000dc0| 75 20 77 61 6e 74 20 74 | 6f 20 74 72 61 6e 73 66 |u want t|o transf|
|00000dd0| 65 72 20 74 6f 20 0d 20 | 20 20 20 20 20 20 20 20 |er to . | |
|00000de0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000df0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e20| 20 20 20 20 20 20 20 2d | 2d 20 74 68 65 20 6f 74 | -|- the ot|
|00000e30| 68 65 72 20 70 72 6f 67 | 72 61 6d 2e 2e 2e 49 74 |her prog|ram...It|
|00000e40| 20 63 61 6e 20 62 65 20 | 63 61 6c 6c 65 64 20 66 | can be |called f|
|00000e50| 72 6f 6d 20 61 20 66 72 | 61 6d 65 20 6f 72 20 73 |rom a fr|ame or s|
|00000e60| 70 72 69 74 65 20 73 63 | 72 69 70 74 2e 0d 73 65 |prite sc|ript..se|
|00000e70| 74 20 74 65 78 74 46 69 | 6c 65 20 3d 20 46 69 6c |t textFi|le = Fil|
|00000e80| 65 49 4f 28 20 6d 4e 65 | 77 2c 20 22 77 72 69 74 |eIO( mNe|w, "writ|
|00000e90| 65 22 2c 20 28 74 68 65 | 20 70 61 74 68 4e 61 6d |e", (the| pathNam|
|00000ea0| 65 20 26 20 22 46 72 61 | 6d 65 46 69 6c 65 22 29 |e & "Fra|meFile")|
|00000eb0| 20 29 20 20 2d 2d 57 65 | 20 73 65 74 20 75 70 20 | ) --We| set up |
|00000ec0| 74 68 65 20 69 6e 73 74 | 61 6e 63 65 20 76 61 72 |the inst|ance var|
|00000ed0| 69 61 62 6c 65 20 74 6f | 20 77 72 69 74 65 20 74 |iable to| write t|
|00000ee0| 6f 20 74 68 65 20 66 69 | 6c 65 2c 0d 74 65 78 74 |o the fi|le,.text|
|00000ef0| 46 69 6c 65 28 20 6d 53 | 65 74 50 6f 73 69 74 69 |File( mS|etPositi|
|00000f00| 6f 6e 2c 30 20 29 20 20 | 20 20 20 20 20 20 20 20 |on,0 ) | |
|00000f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2d | | -|
|00000f30| 2d 74 68 65 6e 20 72 65 | 73 65 74 20 74 68 65 20 |-then re|set the |
|00000f40| 66 69 6c 65 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 |file poi|nter to |
|00000f50| 74 68 65 20 62 65 67 69 | 6e 6e 69 6e 67 20 6f 66 |the begi|nning of|
|00000f60| 20 74 68 65 20 66 69 6c | 65 2c 0d 74 65 78 74 46 | the fil|e,.textF|
|00000f70| 69 6c 65 28 20 6d 57 72 | 69 74 65 53 74 72 69 6e |ile( mWr|iteStrin|
|00000f80| 67 2c 20 73 74 72 69 6e | 67 28 20 74 68 65 20 66 |g, strin|g( the f|
|00000f90| 72 61 6d 65 20 29 20 26 | 20 72 65 74 75 72 6e 20 |rame ) &| return |
|00000fa0| 29 20 2d 2d 61 6e 64 20 | 73 74 6f 72 65 20 74 68 |) --and |store th|
|00000fb0| 65 20 66 72 61 6d 65 20 | 6e 75 6d 62 65 72 20 69 |e frame |number i|
|00000fc0| 6e 20 74 68 65 20 66 69 | 6c 65 20 61 73 20 61 20 |n the fi|le as a |
|00000fd0| 73 74 72 69 6e 67 2e 20 | 54 68 65 20 63 68 6f 69 |string. |The choi|
|00000fe0| 63 65 20 6f 66 0d 20 20 | 20 20 20 20 20 20 20 20 |ce of. | |
|00000ff0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001000| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001010| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001020| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001030| 20 20 20 20 20 20 20 20 | 2d 2d 6d 57 72 69 74 65 | |--mWrite|
|00001040| 53 74 72 69 6e 67 20 61 | 6e 64 20 6d 52 65 61 64 |String a|nd mRead|
|00001050| 53 74 72 69 6e 67 20 69 | 73 20 62 65 74 74 65 72 |String i|s better|
|00001060| 20 74 68 61 6e 20 20 6d | 57 72 69 74 65 43 68 61 | than m|WriteCha|
|00001070| 72 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |r. | |
|00001080| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001090| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000010a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000010b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000010c0| 20 20 20 20 2d 2d 61 6e | 64 20 6d 52 65 61 64 43 | --an|d mReadC|
|000010d0| 68 61 72 20 73 69 6e 63 | 65 20 61 20 66 72 61 6d |har sinc|e a fram|
|000010e0| 65 20 6e 75 6d 62 65 72 | 20 63 61 6e 20 68 61 76 |e number| can hav|
|000010f0| 65 20 6d 6f 72 65 20 74 | 68 61 6e 20 31 20 64 69 |e more t|han 1 di|
|00001100| 67 69 74 2e 0d 74 65 78 | 74 46 69 6c 65 28 20 6d |git..tex|tFile( m|
|00001110| 44 69 73 70 6f 73 65 20 | 29 20 20 20 20 20 20 20 |Dispose |) |
|00001120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001140| 20 20 20 20 20 20 20 20 | 20 20 20 20 2d 2d 57 65 | | --We|
|00001150| 20 64 69 73 70 6f 73 65 | 20 6f 66 20 74 68 65 20 | dispose| of the |
|00001160| 77 72 69 74 65 2d 66 69 | 6c 65 20 6f 62 6a 65 63 |write-fi|le objec|
|00001170| 74 2e 20 54 68 69 73 20 | 63 6c 6f 73 65 73 20 74 |t. This |closes t|
|00001180| 68 65 20 66 69 6c 65 2c | 20 61 6e 64 20 70 75 72 |he file,| and pur|
|00001190| 67 65 73 20 20 20 20 20 | 0d 20 20 20 20 20 20 20 |ges |. |
|000011a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011e0| 20 20 20 20 20 20 20 20 | 20 20 2d 2d 74 68 65 20 | | --the |
|000011f0| 6f 62 6a 65 63 74 20 76 | 61 72 69 61 62 6c 65 20 |object v|ariable |
|00001200| 66 72 6f 6d 20 52 41 4d | 20 69 6e 20 63 61 73 65 |from RAM| in case|
|00001210| 20 74 68 65 20 6d 6f 76 | 69 65 20 61 62 6f 72 74 | the mov|ie abort|
|00001220| 73 20 73 75 64 64 65 6e | 6c 79 2e 0d 4f 70 65 6e |s sudden|ly..Open|
|00001230| 20 22 55 43 53 43 3a 4d | 61 74 68 65 6d 61 74 69 | "UCSC:M|athemati|
|00001240| 63 61 22 20 2d 2d 20 70 | 75 74 20 79 6f 75 72 20 |ca" -- p|ut your |
|00001250| 61 70 70 72 6f 70 72 69 | 61 74 65 20 c7 70 61 74 |appropri|ate .pat|
|00001260| 68 3a 66 69 6c 65 4e 61 | 6d 65 c8 20 74 6f 20 74 |h:fileNa|me. to t|
|00001270| 68 65 20 6f 74 68 65 72 | 20 41 70 70 6c 69 63 61 |he other| Applica|
|00001280| 74 69 6f 6e 20 0d 20 20 | 20 20 20 20 20 20 20 20 |tion . | |
|00001290| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000012a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000012b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000012c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000012d0| 20 20 20 20 20 20 20 20 | 2d 2d 77 69 74 68 69 6e | |--within|
|000012e0| 20 71 75 6f 74 65 73 20 | 68 65 72 65 2e 20 44 6f | quotes |here. Do|
|000012f0| 6e d5 74 20 66 6f 72 67 | 65 74 20 74 68 65 20 6e |n.t forg|et the n|
|00001300| 61 6d 65 20 6f 66 20 74 | 68 65 20 68 61 72 64 20 |ame of t|he hard |
|00001310| 64 72 69 76 65 2e 0d 6d | 61 63 72 6f 20 74 72 61 |drive..m|acro tra|
|00001320| 6e 73 66 65 72 48 79 70 | 65 72 43 61 72 64 20 20 |nsferHyp|erCard |
|00001330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001340| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001350| 20 20 2d 2d 20 43 61 6c | 6c 20 74 68 69 73 20 6d | -- Cal|l this m|
|00001360| 61 63 72 6f 20 66 72 6f | 6d 20 66 72 61 6d 65 73 |acro fro|m frames|
|00001370| 20 77 68 65 72 65 20 79 | 6f 75 20 77 61 6e 74 20 | where y|ou want |
|00001380| 74 6f 20 74 72 61 6e 73 | 66 65 72 20 74 6f 20 0d |to trans|fer to .|
|00001390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000013a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000013b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000013c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000013d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000013e0| 2d 2d 20 74 68 65 20 6f | 74 68 65 72 20 70 72 6f |-- the o|ther pro|
|000013f0| 67 72 61 6d 2e 2e 2e 49 | 74 20 63 61 6e 20 62 65 |gram...I|t can be|
|00001400| 20 63 61 6c 6c 65 64 20 | 66 72 6f 6d 20 61 20 66 | called |from a f|
|00001410| 72 61 6d 65 20 6f 72 20 | 73 70 72 69 74 65 20 73 |rame or |sprite s|
|00001420| 63 72 69 70 74 2e 0d 73 | 65 74 20 74 65 78 74 46 |cript..s|et textF|
|00001430| 69 6c 65 20 3d 20 46 69 | 6c 65 49 4f 28 20 6d 4e |ile = Fi|leIO( mN|
|00001440| 65 77 2c 20 22 77 72 69 | 74 65 22 2c 20 28 74 68 |ew, "wri|te", (th|
|00001450| 65 20 70 61 74 68 4e 61 | 6d 65 20 26 20 22 46 72 |e pathNa|me & "Fr|
|00001460| 61 6d 65 46 69 6c 65 22 | 29 20 29 20 20 2d 2d 57 |ameFile"|) ) --W|
|00001470| 65 20 73 65 74 20 75 70 | 20 74 68 65 20 69 6e 73 |e set up| the ins|
|00001480| 74 61 6e 63 65 20 76 61 | 72 69 61 62 6c 65 20 74 |tance va|riable t|
|00001490| 6f 20 77 72 69 74 65 20 | 74 6f 20 74 68 65 20 66 |o write |to the f|
|000014a0| 69 6c 65 2c 0d 74 65 78 | 74 46 69 6c 65 28 20 6d |ile,.tex|tFile( m|
|000014b0| 53 65 74 50 6f 73 69 74 | 69 6f 6e 2c 30 20 29 20 |SetPosit|ion,0 ) |
|000014c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014e0| 20 20 20 20 20 20 20 20 | 2d 2d 74 68 65 6e 20 72 | |--then r|
|000014f0| 65 73 65 74 20 74 68 65 | 20 66 69 6c 65 20 70 6f |eset the| file po|
|00001500| 69 6e 74 65 72 20 74 6f | 20 74 68 65 20 62 65 67 |inter to| the beg|
|00001510| 69 6e 6e 69 6e 67 20 6f | 66 20 74 68 65 20 66 69 |inning o|f the fi|
|00001520| 6c 65 2c 0d 74 65 78 74 | 46 69 6c 65 28 20 6d 57 |le,.text|File( mW|
|00001530| 72 69 74 65 53 74 72 69 | 6e 67 2c 20 73 74 72 69 |riteStri|ng, stri|
|00001540| 6e 67 28 20 74 68 65 20 | 66 72 61 6d 65 20 29 20 |ng( the |frame ) |
|00001550| 26 20 72 65 74 75 72 6e | 20 29 20 2d 2d 61 6e 64 |& return| ) --and|
|00001560| 20 73 74 6f 72 65 20 74 | 68 65 20 66 72 61 6d 65 | store t|he frame|
|00001570| 20 6e 75 6d 62 65 72 20 | 69 6e 20 74 68 65 20 66 | number |in the f|
|00001580| 69 6c 65 20 61 73 20 61 | 20 73 74 72 69 6e 67 2e |ile as a| string.|
|00001590| 20 54 68 65 20 63 68 6f | 69 63 65 20 6f 66 0d 20 | The cho|ice of. |
|000015a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000015b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000015c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000015d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000015e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000015f0| 20 2d 2d 6d 57 72 69 74 | 65 53 74 72 69 6e 67 20 | --mWrit|eString |
|00001600| 61 6e 64 20 6d 52 65 61 | 64 53 74 72 69 6e 67 20 |and mRea|dString |
|00001610| 69 73 20 62 65 74 74 65 | 72 20 74 68 61 6e 20 20 |is bette|r than |
|00001620| 6d 57 72 69 74 65 43 68 | 61 72 0d 20 20 20 20 20 |mWriteCh|ar. |
|00001630| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001640| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001650| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2d 2d 61 | | --a|
|00001680| 6e 64 20 6d 52 65 61 64 | 43 68 61 72 20 73 69 6e |nd mRead|Char sin|
|00001690| 63 65 20 61 20 66 72 61 | 6d 65 20 6e 75 6d 62 65 |ce a fra|me numbe|
|000016a0| 72 20 63 61 6e 20 68 61 | 76 65 20 6d 6f 72 65 20 |r can ha|ve more |
|000016b0| 74 68 61 6e 20 31 20 64 | 69 67 69 74 2e 0d 74 65 |than 1 d|igit..te|
|000016c0| 78 74 46 69 6c 65 28 20 | 6d 44 69 73 70 6f 73 65 |xtFile( |mDispose|
|000016d0| 20 29 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | ) | |
|000016e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000016f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001700| 20 20 20 20 20 2d 2d 57 | 65 20 64 69 73 70 6f 73 | --W|e dispos|
|00001710| 65 20 6f 66 20 74 68 65 | 20 77 72 69 74 65 2d 66 |e of the| write-f|
|00001720| 69 6c 65 20 6f 62 6a 65 | 63 74 2e 20 54 68 69 73 |ile obje|ct. This|
|00001730| 20 63 6c 6f 73 65 73 20 | 74 68 65 20 66 69 6c 65 | closes |the file|
|00001740| 2c 20 61 6e 64 20 70 75 | 72 67 65 73 20 20 20 20 |, and pu|rges |
|00001750| 20 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | . | |
|00001760| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001770| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000017a0| 20 20 20 2d 2d 74 68 65 | 20 6f 62 6a 65 63 74 20 | --the| object |
|000017b0| 76 61 72 69 61 62 6c 65 | 20 66 72 6f 6d 20 52 41 |variable| from RA|
|000017c0| 4d 20 69 6e 20 63 61 73 | 65 20 74 68 65 20 6d 6f |M in cas|e the mo|
|000017d0| 76 69 65 20 61 62 6f 72 | 74 73 20 73 75 64 64 65 |vie abor|ts sudde|
|000017e0| 6e 6c 79 2e 0d 4f 70 65 | 6e 20 22 55 43 53 43 3a |nly..Ope|n "UCSC:|
|000017f0| 48 79 70 65 72 43 61 72 | 64 22 20 2d 2d 20 70 75 |HyperCar|d" -- pu|
|00001800| 74 20 79 6f 75 72 20 61 | 70 70 72 6f 70 72 69 61 |t your a|ppropria|
|00001810| 74 65 20 c7 70 61 74 68 | 3a 66 69 6c 65 4e 61 6d |te .path|:fileNam|
|00001820| 65 c8 20 74 6f 20 74 68 | 65 20 6f 74 68 65 72 20 |e. to th|e other |
|00001830| 41 70 70 6c 69 63 61 74 | 69 6f 6e 20 0d 20 20 20 |Applicat|ion . |
|00001840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001850| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2d | | -|
|00001890| 2d 77 69 74 68 69 6e 20 | 71 75 6f 74 65 73 20 68 |-within |quotes h|
|000018a0| 65 72 65 2e 20 44 6f 6e | d5 74 20 66 6f 72 67 65 |ere. Don|.t forge|
|000018b0| 74 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |t the na|me of th|
|000018c0| 65 20 68 61 72 64 20 64 | 72 69 76 65 2e 0d 6d 61 |e hard d|rive..ma|
|000018d0| 63 72 6f 20 74 72 61 6e | 73 66 65 72 50 68 79 73 |cro tran|sferPhys|
|000018e0| 69 63 73 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ics | |
|000018f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2d 2d | | --|
|00001910| 20 43 61 6c 6c 20 74 68 | 69 73 20 6d 61 63 72 6f | Call th|is macro|
|00001920| 20 66 72 6f 6d 20 66 72 | 61 6d 65 73 20 77 68 65 | from fr|ames whe|
|00001930| 72 65 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 20 74 |re you w|ant to t|
|00001940| 72 61 6e 73 66 65 72 20 | 74 6f 20 0d 20 20 20 20 |ransfer |to . |
|00001950| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001960| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001990| 20 20 20 20 20 20 20 20 | 20 20 20 20 2d 2d 20 74 | | -- t|
|000019a0| 68 65 20 6f 74 68 65 72 | 20 70 72 6f 67 72 61 6d |he other| program|
|000019b0| 2e 2e 2e 49 74 20 63 61 | 6e 20 62 65 20 63 61 6c |...It ca|n be cal|
|000019c0| 6c 65 64 20 66 72 6f 6d | 20 61 20 66 72 61 6d 65 |led from| a frame|
|000019d0| 20 6f 72 20 73 70 72 69 | 74 65 20 73 63 72 69 70 | or spri|te scrip|
|000019e0| 74 2e 0d 73 65 74 20 74 | 65 78 74 46 69 6c 65 20 |t..set t|extFile |
|000019f0| 3d 20 46 69 6c 65 49 4f | 28 20 6d 4e 65 77 2c 20 |= FileIO|( mNew, |
|00001a00| 22 77 72 69 74 65 22 2c | 20 28 74 68 65 20 70 61 |"write",| (the pa|
|00001a10| 74 68 4e 61 6d 65 20 26 | 20 22 46 72 61 6d 65 46 |thName &| "FrameF|
|00001a20| 69 6c 65 22 29 20 29 20 | 20 2d 2d 57 65 20 73 65 |ile") ) | --We se|
|00001a30| 74 20 75 70 20 74 68 65 | 20 69 6e 73 74 61 6e 63 |t up the| instanc|
|00001a40| 65 20 76 61 72 69 61 62 | 6c 65 20 74 6f 20 77 72 |e variab|le to wr|
|00001a50| 69 74 65 20 74 6f 20 74 | 68 65 20 66 69 6c 65 2c |ite to t|he file,|
|00001a60| 0d 74 65 78 74 46 69 6c | 65 28 20 6d 53 65 74 50 |.textFil|e( mSetP|
|00001a70| 6f 73 69 74 69 6f 6e 2c | 30 20 29 20 20 20 20 20 |osition,|0 ) |
|00001a80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001aa0| 20 20 20 20 2d 2d 74 68 | 65 6e 20 72 65 73 65 74 | --th|en reset|
|00001ab0| 20 74 68 65 20 66 69 6c | 65 20 70 6f 69 6e 74 65 | the fil|e pointe|
|00001ac0| 72 20 74 6f 20 74 68 65 | 20 62 65 67 69 6e 6e 69 |r to the| beginni|
|00001ad0| 6e 67 20 6f 66 20 74 68 | 65 20 66 69 6c 65 2c 0d |ng of th|e file,.|
|00001ae0| 74 65 78 74 46 69 6c 65 | 28 20 6d 57 72 69 74 65 |textFile|( mWrite|
|00001af0| 53 74 72 69 6e 67 2c 20 | 73 74 72 69 6e 67 28 20 |String, |string( |
|00001b00| 74 68 65 20 66 72 61 6d | 65 20 29 20 26 20 72 65 |the fram|e ) & re|
|00001b10| 74 75 72 6e 20 29 20 2d | 2d 61 6e 64 20 73 74 6f |turn ) -|-and sto|
|00001b20| 72 65 20 74 68 65 20 66 | 72 61 6d 65 20 6e 75 6d |re the f|rame num|
|00001b30| 62 65 72 20 69 6e 20 74 | 68 65 20 66 69 6c 65 20 |ber in t|he file |
|00001b40| 61 73 20 61 20 73 74 72 | 69 6e 67 2e 20 54 68 65 |as a str|ing. The|
|00001b50| 20 63 68 6f 69 63 65 20 | 6f 66 0d 20 20 20 20 20 | choice |of. |
|00001b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ba0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2d 2d 6d | | --m|
|00001bb0| 57 72 69 74 65 53 74 72 | 69 6e 67 20 61 6e 64 20 |WriteStr|ing and |
|00001bc0| 6d 52 65 61 64 53 74 72 | 69 6e 67 20 69 73 20 62 |mReadStr|ing is b|
|00001bd0| 65 74 74 65 72 20 74 68 | 61 6e 20 20 6d 57 72 69 |etter th|an mWri|
|00001be0| 74 65 43 68 61 72 0d 20 | 20 20 20 20 20 20 20 20 |teChar. | |
|00001bf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c30| 20 20 20 20 20 20 20 20 | 20 2d 2d 61 6e 64 20 6d | | --and m|
|00001c40| 52 65 61 64 43 68 61 72 | 20 73 69 6e 63 65 20 61 |ReadChar| since a|
|00001c50| 20 66 72 61 6d 65 20 6e | 75 6d 62 65 72 20 63 61 | frame n|umber ca|
|00001c60| 6e 20 68 61 76 65 20 6d | 6f 72 65 20 74 68 61 6e |n have m|ore than|
|00001c70| 20 31 20 64 69 67 69 74 | 2e 0d 74 65 78 74 46 69 | 1 digit|..textFi|
|00001c80| 6c 65 28 20 6d 44 69 73 | 70 6f 73 65 20 29 20 20 |le( mDis|pose ) |
|00001c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001cb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001cc0| 20 2d 2d 57 65 20 64 69 | 73 70 6f 73 65 20 6f 66 | --We di|spose of|
|00001cd0| 20 74 68 65 20 77 72 69 | 74 65 2d 66 69 6c 65 20 | the wri|te-file |
|00001ce0| 6f 62 6a 65 63 74 2e 20 | 54 68 69 73 20 63 6c 6f |object. |This clo|
|00001cf0| 73 65 73 20 74 68 65 20 | 66 69 6c 65 2c 20 61 6e |ses the |file, an|
|00001d00| 64 20 70 75 72 67 65 73 | 20 20 20 20 20 0d 20 20 |d purges| . |
|00001d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001d20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001d30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001d50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2d | | -|
|00001d60| 2d 74 68 65 20 6f 62 6a | 65 63 74 20 76 61 72 69 |-the obj|ect vari|
|00001d70| 61 62 6c 65 20 66 72 6f | 6d 20 52 41 4d 20 69 6e |able fro|m RAM in|
|00001d80| 20 63 61 73 65 20 74 68 | 65 20 6d 6f 76 69 65 20 | case th|e movie |
|00001d90| 61 62 6f 72 74 73 20 73 | 75 64 64 65 6e 6c 79 2e |aborts s|uddenly.|
|00001da0| 0d 4f 70 65 6e 20 22 55 | 43 53 43 3a 50 68 79 73 |.Open "U|CSC:Phys|
|00001db0| 69 63 73 22 20 2d 2d 20 | 70 75 74 20 79 6f 75 72 |ics" -- |put your|
|00001dc0| 20 61 70 70 72 6f 70 72 | 69 61 74 65 20 c7 70 61 | appropr|iate .pa|
|00001dd0| 74 68 3a 66 69 6c 65 4e | 61 6d 65 c8 20 74 6f 20 |th:fileN|ame. to |
|00001de0| 74 68 65 20 6f 74 68 65 | 72 20 41 70 70 6c 69 63 |the othe|r Applic|
|00001df0| 61 74 69 6f 6e 20 0d 20 | 20 20 20 20 20 20 20 20 |ation . | |
|00001e00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e40| 20 20 20 20 20 20 20 20 | 20 2d 2d 77 69 74 68 69 | | --withi|
|00001e50| 6e 20 71 75 6f 74 65 73 | 20 68 65 72 65 2e 20 44 |n quotes| here. D|
|00001e60| 6f 6e d5 74 20 66 6f 72 | 67 65 74 20 74 68 65 20 |on.t for|get the |
|00001e70| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 68 61 72 64 |name of |the hard|
|00001e80| 20 64 72 69 76 65 2e 0d | 6d 61 63 72 6f 20 74 72 | drive..|macro tr|
|00001e90| 61 6e 73 66 65 72 46 72 | 61 63 74 61 53 6b 65 74 |ansferFr|actaSket|
|00001ea0| 63 68 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ch | |
|00001eb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ec0| 2d 2d 20 43 61 6c 6c 20 | 74 68 69 73 20 6d 61 63 |-- Call |this mac|
|00001ed0| 72 6f 20 66 72 6f 6d 20 | 66 72 61 6d 65 73 20 77 |ro from |frames w|
|00001ee0| 68 65 72 65 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |here you| want to|
|00001ef0| 20 74 72 61 6e 73 66 65 | 72 20 74 6f 20 0d 20 20 | transfe|r to . |
|00001f00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2d 2d | | --|
|00001f50| 20 74 68 65 20 6f 74 68 | 65 72 20 70 72 6f 67 72 | the oth|er progr|
|00001f60| 61 6d 2e 2e 2e 49 74 20 | 63 61 6e 20 62 65 20 63 |am...It |can be c|
|00001f70| 61 6c 6c 65 64 20 66 72 | 6f 6d 20 61 20 66 72 61 |alled fr|om a fra|
|00001f80| 6d 65 20 6f 72 20 73 70 | 72 69 74 65 20 73 63 72 |me or sp|rite scr|
|00001f90| 69 70 74 2e 0d 73 65 74 | 20 74 65 78 74 46 69 6c |ipt..set| textFil|
|00001fa0| 65 20 3d 20 46 69 6c 65 | 49 4f 28 20 6d 4e 65 77 |e = File|IO( mNew|
|00001fb0| 2c 20 22 77 72 69 74 65 | 22 2c 20 28 74 68 65 20 |, "write|", (the |
|00001fc0| 70 61 74 68 4e 61 6d 65 | 20 26 20 22 46 72 61 6d |pathName| & "Fram|
|00001fd0| 65 46 69 6c 65 22 29 20 | 29 20 20 2d 2d 57 65 20 |eFile") |) --We |
|00001fe0| 73 65 74 20 75 70 20 74 | 68 65 20 69 6e 73 74 61 |set up t|he insta|
|00001ff0| 6e 63 65 20 76 61 72 69 | 61 62 6c 65 20 74 6f 20 |nce vari|able to |
|00002000| 77 72 69 74 65 20 74 6f | 20 74 68 65 20 66 69 6c |write to| the fil|
|00002010| 65 2c 0d 74 65 78 74 46 | 69 6c 65 28 20 6d 53 65 |e,.textF|ile( mSe|
|00002020| 74 50 6f 73 69 74 69 6f | 6e 2c 30 20 29 20 20 20 |tPositio|n,0 ) |
|00002030| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002040| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002050| 20 20 20 20 20 20 2d 2d | 74 68 65 6e 20 72 65 73 | --|then res|
|00002060| 65 74 20 74 68 65 20 66 | 69 6c 65 20 70 6f 69 6e |et the f|ile poin|
|00002070| 74 65 72 20 74 6f 20 74 | 68 65 20 62 65 67 69 6e |ter to t|he begin|
|00002080| 6e 69 6e 67 20 6f 66 20 | 74 68 65 20 66 69 6c 65 |ning of |the file|
|00002090| 2c 0d 74 65 78 74 46 69 | 6c 65 28 20 6d 57 72 69 |,.textFi|le( mWri|
|000020a0| 74 65 53 74 72 69 6e 67 | 2c 20 73 74 72 69 6e 67 |teString|, string|
|000020b0| 28 20 74 68 65 20 66 72 | 61 6d 65 20 29 20 26 20 |( the fr|ame ) & |
|000020c0| 72 65 74 75 72 6e 20 29 | 20 2d 2d 61 6e 64 20 73 |return )| --and s|
|000020d0| 74 6f 72 65 20 74 68 65 | 20 66 72 61 6d 65 20 6e |tore the| frame n|
|000020e0| 75 6d 62 65 72 20 69 6e | 20 74 68 65 20 66 69 6c |umber in| the fil|
|000020f0| 65 20 61 73 20 61 20 73 | 74 72 69 6e 67 2e 20 54 |e as a s|tring. T|
|00002100| 68 65 20 63 68 6f 69 63 | 65 20 6f 66 0d 20 20 20 |he choic|e of. |
|00002110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002140| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2d | | -|
|00002160| 2d 6d 57 72 69 74 65 53 | 74 72 69 6e 67 20 61 6e |-mWriteS|tring an|
|00002170| 64 20 6d 52 65 61 64 53 | 74 72 69 6e 67 20 69 73 |d mReadS|tring is|
|00002180| 20 62 65 74 74 65 72 20 | 74 68 61 6e 20 20 6d 57 | better |than mW|
|00002190| 72 69 74 65 43 68 61 72 | 0d 20 20 20 20 20 20 20 |riteChar|. |
|000021a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021e0| 20 20 20 20 20 20 20 20 | 20 20 20 2d 2d 61 6e 64 | | --and|
|000021f0| 20 6d 52 65 61 64 43 68 | 61 72 20 73 69 6e 63 65 | mReadCh|ar since|
|00002200| 20 61 20 66 72 61 6d 65 | 20 6e 75 6d 62 65 72 20 | a frame| number |
|00002210| 63 61 6e 20 68 61 76 65 | 20 6d 6f 72 65 20 74 68 |can have| more th|
|00002220| 61 6e 20 31 20 64 69 67 | 69 74 2e 0d 74 65 78 74 |an 1 dig|it..text|
|00002230| 46 69 6c 65 28 20 6d 44 | 69 73 70 6f 73 65 20 29 |File( mD|ispose )|
|00002240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002270| 20 20 20 2d 2d 57 65 20 | 64 69 73 70 6f 73 65 20 | --We |dispose |
|00002280| 6f 66 20 74 68 65 20 77 | 72 69 74 65 2d 66 69 6c |of the w|rite-fil|
|00002290| 65 20 6f 62 6a 65 63 74 | 2e 20 54 68 69 73 20 63 |e object|. This c|
|000022a0| 6c 6f 73 65 73 20 74 68 | 65 20 66 69 6c 65 2c 20 |loses th|e file, |
|000022b0| 61 6e 64 20 70 75 72 67 | 65 73 20 20 20 20 20 0d |and purg|es .|
|000022c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002300| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002310| 20 2d 2d 74 68 65 20 6f | 62 6a 65 63 74 20 76 61 | --the o|bject va|
|00002320| 72 69 61 62 6c 65 20 66 | 72 6f 6d 20 52 41 4d 20 |riable f|rom RAM |
|00002330| 69 6e 20 63 61 73 65 20 | 74 68 65 20 6d 6f 76 69 |in case |the movi|
|00002340| 65 20 61 62 6f 72 74 73 | 20 73 75 64 64 65 6e 6c |e aborts| suddenl|
|00002350| 79 2e 0d 4f 70 65 6e 20 | 22 55 43 53 43 3a 46 72 |y..Open |"UCSC:Fr|
|00002360| 61 63 74 61 53 6b 65 74 | 63 68 22 20 2d 2d 20 70 |actaSket|ch" -- p|
|00002370| 75 74 20 79 6f 75 72 20 | 61 70 70 72 6f 70 72 69 |ut your |appropri|
|00002380| 61 74 65 20 c7 70 61 74 | 68 3a 66 69 6c 65 4e 61 |ate .pat|h:fileNa|
|00002390| 6d 65 c8 20 74 6f 20 74 | 68 65 20 6f 74 68 65 72 |me. to t|he other|
|000023a0| 20 41 70 70 6c 69 63 61 | 74 69 6f 6e 20 0d 20 20 | Applica|tion . |
|000023b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002400| 2d 2d 77 69 74 68 69 6e | 20 71 75 6f 74 65 73 20 |--within| quotes |
|00002410| 68 65 72 65 2e 20 44 6f | 6e d5 74 20 66 6f 72 67 |here. Do|n.t forg|
|00002420| 65 74 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 74 |et the n|ame of t|
|00002430| 68 65 20 68 61 72 64 20 | 64 72 69 76 65 2e 0d 6d |he hard |drive..m|
|00002440| 61 63 72 6f 20 74 72 61 | 6e 73 66 65 72 49 6e 74 |acro tra|nsferInt|
|00002450| 72 6f 64 75 63 74 69 6f | 6e 20 20 20 20 20 20 20 |roductio|n |
|00002460| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002470| 20 20 20 20 20 20 20 20 | 20 2d 2d 20 43 61 6c 6c | | -- Call|
|00002480| 20 74 68 69 73 20 6d 61 | 63 72 6f 20 66 72 6f 6d | this ma|cro from|
|00002490| 20 66 72 61 6d 65 73 20 | 77 68 65 72 65 20 79 6f | frames |where yo|
|000024a0| 75 20 77 61 6e 74 20 74 | 6f 20 74 72 61 6e 73 66 |u want t|o transf|
|000024b0| 65 72 20 74 6f 20 0d 20 | 20 20 20 20 20 20 20 20 |er to . | |
|000024c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000024d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000024e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000024f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002500| 20 20 20 20 20 20 20 2d | 2d 20 74 68 65 20 6f 74 | -|- the ot|
|00002510| 68 65 72 20 70 72 6f 67 | 72 61 6d 2e 2e 2e 49 74 |her prog|ram...It|
|00002520| 20 63 61 6e 20 62 65 20 | 63 61 6c 6c 65 64 20 66 | can be |called f|
|00002530| 72 6f 6d 20 61 20 66 72 | 61 6d 65 20 6f 72 20 73 |rom a fr|ame or s|
|00002540| 70 72 69 74 65 20 73 63 | 72 69 70 74 2e 0d 73 65 |prite sc|ript..se|
|00002550| 74 20 74 65 78 74 46 69 | 6c 65 20 3d 20 46 69 6c |t textFi|le = Fil|
|00002560| 65 49 4f 28 20 6d 4e 65 | 77 2c 20 22 77 72 69 74 |eIO( mNe|w, "writ|
|00002570| 65 22 2c 20 28 74 68 65 | 20 70 61 74 68 4e 61 6d |e", (the| pathNam|
|00002580| 65 20 26 20 22 46 72 61 | 6d 65 46 69 6c 65 22 29 |e & "Fra|meFile")|
|00002590| 20 29 20 20 2d 2d 57 65 | 20 73 65 74 20 75 70 20 | ) --We| set up |
|000025a0| 74 68 65 20 69 6e 73 74 | 61 6e 63 65 20 76 61 72 |the inst|ance var|
|000025b0| 69 61 62 6c 65 20 74 6f | 20 77 72 69 74 65 20 74 |iable to| write t|
|000025c0| 6f 20 74 68 65 20 66 69 | 6c 65 2c 0d 74 65 78 74 |o the fi|le,.text|
|000025d0| 46 69 6c 65 28 20 6d 53 | 65 74 50 6f 73 69 74 69 |File( mS|etPositi|
|000025e0| 6f 6e 2c 30 20 29 20 20 | 20 20 20 20 20 20 20 20 |on,0 ) | |
|000025f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002600| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2d | | -|
|00002610| 2d 74 68 65 6e 20 72 65 | 73 65 74 20 74 68 65 20 |-then re|set the |
|00002620| 66 69 6c 65 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 |file poi|nter to |
|00002630| 74 68 65 20 62 65 67 69 | 6e 6e 69 6e 67 20 6f 66 |the begi|nning of|
|00002640| 20 74 68 65 20 66 69 6c | 65 2c 0d 74 65 78 74 46 | the fil|e,.textF|
|00002650| 69 6c 65 28 20 6d 57 72 | 69 74 65 53 74 72 69 6e |ile( mWr|iteStrin|
|00002660| 67 2c 20 73 74 72 69 6e | 67 28 20 74 68 65 20 66 |g, strin|g( the f|
|00002670| 72 61 6d 65 20 29 20 26 | 20 72 65 74 75 72 6e 20 |rame ) &| return |
|00002680| 29 20 2d 2d 61 6e 64 20 | 73 74 6f 72 65 20 74 68 |) --and |store th|
|00002690| 65 20 66 72 61 6d 65 20 | 6e 75 6d 62 65 72 20 69 |e frame |number i|
|000026a0| 6e 20 74 68 65 20 66 69 | 6c 65 20 61 73 20 61 20 |n the fi|le as a |
|000026b0| 73 74 72 69 6e 67 2e 20 | 54 68 65 20 63 68 6f 69 |string. |The choi|
|000026c0| 63 65 20 6f 66 0d 20 20 | 20 20 20 20 20 20 20 20 |ce of. | |
|000026d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000026e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000026f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002700| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002710| 20 20 20 20 20 20 20 20 | 2d 2d 6d 57 72 69 74 65 | |--mWrite|
|00002720| 53 74 72 69 6e 67 20 61 | 6e 64 20 6d 52 65 61 64 |String a|nd mRead|
|00002730| 53 74 72 69 6e 67 20 69 | 73 20 62 65 74 74 65 72 |String i|s better|
|00002740| 20 74 68 61 6e 20 20 6d | 57 72 69 74 65 43 68 61 | than m|WriteCha|
|00002750| 72 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |r. | |
|00002760| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002770| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000027a0| 20 20 20 20 2d 2d 61 6e | 64 20 6d 52 65 61 64 43 | --an|d mReadC|
|000027b0| 68 61 72 20 73 69 6e 63 | 65 20 61 20 66 72 61 6d |har sinc|e a fram|
|000027c0| 65 20 6e 75 6d 62 65 72 | 20 63 61 6e 20 68 61 76 |e number| can hav|
|000027d0| 65 20 6d 6f 72 65 20 74 | 68 61 6e 20 31 20 64 69 |e more t|han 1 di|
|000027e0| 67 69 74 2e 0d 74 65 78 | 74 46 69 6c 65 28 20 6d |git..tex|tFile( m|
|000027f0| 44 69 73 70 6f 73 65 20 | 29 20 20 20 20 20 20 20 |Dispose |) |
|00002800| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002820| 20 20 20 20 20 20 20 20 | 20 20 20 20 2d 2d 57 65 | | --We|
|00002830| 20 64 69 73 70 6f 73 65 | 20 6f 66 20 74 68 65 20 | dispose| of the |
|00002840| 77 72 69 74 65 2d 66 69 | 6c 65 20 6f 62 6a 65 63 |write-fi|le objec|
|00002850| 74 2e 20 54 68 69 73 20 | 63 6c 6f 73 65 73 20 74 |t. This |closes t|
|00002860| 68 65 20 66 69 6c 65 2c | 20 61 6e 64 20 70 75 72 |he file,| and pur|
|00002870| 67 65 73 20 20 20 20 20 | 0d 20 20 20 20 20 20 20 |ges |. |
|00002880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002890| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028c0| 20 20 20 20 20 20 20 20 | 20 20 2d 2d 74 68 65 20 | | --the |
|000028d0| 6f 62 6a 65 63 74 20 76 | 61 72 69 61 62 6c 65 20 |object v|ariable |
|000028e0| 66 72 6f 6d 20 52 41 4d | 20 69 6e 20 63 61 73 65 |from RAM| in case|
|000028f0| 20 74 68 65 20 6d 6f 76 | 69 65 20 61 62 6f 72 74 | the mov|ie abort|
|00002900| 73 20 73 75 64 64 65 6e | 6c 79 2e 0d 4f 70 65 6e |s sudden|ly..Open|
|00002910| 20 22 55 43 53 43 3a 49 | 6e 74 72 6f 64 75 63 74 | "UCSC:I|ntroduct|
|00002920| 69 6f 6e 22 20 2d 2d 20 | 70 75 74 20 79 6f 75 72 |ion" -- |put your|
|00002930| 20 61 70 70 72 6f 70 72 | 69 61 74 65 20 c7 70 61 | appropr|iate .pa|
|00002940| 74 68 3a 66 69 6c 65 4e | 61 6d 65 c8 20 74 6f 20 |th:fileN|ame. to |
|00002950| 74 68 65 20 6f 74 68 65 | 72 20 41 70 70 6c 69 63 |the othe|r Applic|
|00002960| 61 74 69 6f 6e 20 0d 20 | 20 20 20 20 20 20 20 20 |ation . | |
|00002970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002990| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029b0| 20 20 20 20 20 20 20 20 | 20 2d 2d 77 69 74 68 69 | | --withi|
|000029c0| 6e 20 71 75 6f 74 65 73 | 20 68 65 72 65 2e 20 44 |n quotes| here. D|
|000029d0| 6f 6e d5 74 20 66 6f 72 | 67 65 74 20 74 68 65 20 |on.t for|get the |
|000029e0| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 68 61 72 64 |name of |the hard|
|000029f0| 20 64 72 69 76 65 2e 0d | 00 0d 00 00 00 00 00 0c | drive..|........|
|00002a00| 00 0a 00 03 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00002a10| 00 1f 00 0c 00 0a 00 03 | 01 00 00 09 00 00 00 00 |........|........|
|00002a20| 00 00 00 00 00 58 00 0c | 00 0a 00 03 00 00 00 09 |.....X..|........|
|00002a30| 00 00 00 00 00 00 00 00 | 0d 57 00 0c 00 0a 00 03 |........|.W......|
|00002a40| 01 00 00 09 00 00 00 00 | 00 00 00 00 0d 70 00 0c |........|.....p..|
|00002a50| 00 0a 00 03 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00002a60| 13 0b 00 0c 00 0a 00 03 | 01 00 00 09 00 00 00 00 |........|........|
|00002a70| 00 00 00 00 13 22 00 0c | 00 0a 00 03 00 00 00 09 |....."..|........|
|00002a80| 00 00 00 00 00 00 00 00 | 18 c2 00 0c 00 0a 00 03 |........|........|
|00002a90| 01 00 00 09 00 00 00 00 | 00 00 00 00 18 d7 00 0c |........|........|
|00002aa0| 00 0a 00 03 00 00 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00002ab0| 1e 7c 00 0c 00 0a 00 03 | 01 00 00 09 00 00 00 00 |.|......|........|
|00002ac0| 00 00 00 00 1e 96 00 0c | 00 0a 00 03 00 00 00 09 |........|........|
|00002ad0| 00 00 00 00 00 00 00 00 | 24 33 00 0c 00 0a 00 03 |........|$3......|
|00002ae0| 01 00 00 09 00 00 00 00 | 00 00 00 00 24 4d 00 0c |........|....$M..|
|00002af0| 00 0a 00 03 00 00 00 09 | 00 00 00 00 00 00 |........|...... |
+--------+-------------------------+-------------------------+--------+--------+